vertex-notes 0.3.1 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +130 -130
  2. package/bin/run.js +3 -3
  3. package/dist/{chunk-JGE6NM2D.js → chunk-23CKP3YP.js} +1 -2
  4. package/dist/{chunk-PBF5EE4Y.js → chunk-DRIWYEQE.js} +0 -1
  5. package/dist/{chunk-HJR4UBO3.js → chunk-QQO4JMNC.js} +2 -3
  6. package/dist/{chunk-QEOOUDO3.js → chunk-XJVEK2OB.js} +552 -47
  7. package/dist/commands/capture.js +3 -4
  8. package/dist/commands/daily.js +3 -4
  9. package/dist/commands/delete.js +3 -4
  10. package/dist/commands/edit.js +3 -8
  11. package/dist/commands/export.js +3 -4
  12. package/dist/commands/hello.js +1 -2
  13. package/dist/commands/help.js +1 -2
  14. package/dist/commands/howto.js +0 -1
  15. package/dist/commands/import.js +3 -4
  16. package/dist/commands/interactive.js +45 -4
  17. package/dist/commands/login.js +2 -3
  18. package/dist/commands/logout.js +1 -2
  19. package/dist/commands/new.js +3 -4
  20. package/dist/commands/notes.js +3 -4
  21. package/dist/commands/restore.js +3 -4
  22. package/dist/commands/search.js +3 -4
  23. package/dist/commands/status.js +3 -4
  24. package/dist/commands/syntax.js +0 -1
  25. package/dist/commands/tags.js +3 -4
  26. package/dist/commands/today.js +3 -4
  27. package/dist/commands/trash/empty.js +4 -5
  28. package/dist/commands/trash/index.js +3 -4
  29. package/dist/commands/view.js +3 -4
  30. package/dist/commands/whoami.js +1 -2
  31. package/dist/index.js +0 -1
  32. package/dist/lib/client.js +3 -4
  33. package/dist/lib/config.js +1 -2
  34. package/dist/lib/file-cleanup.js +2 -3
  35. package/package.json +56 -54
  36. package/dist/chunk-HJR4UBO3.js.map +0 -1
  37. package/dist/chunk-JGE6NM2D.js.map +0 -1
  38. package/dist/chunk-PBF5EE4Y.js.map +0 -1
  39. package/dist/chunk-QEOOUDO3.js.map +0 -1
  40. package/dist/commands/capture.js.map +0 -1
  41. package/dist/commands/daily.js.map +0 -1
  42. package/dist/commands/delete.js.map +0 -1
  43. package/dist/commands/edit.js.map +0 -1
  44. package/dist/commands/export.js.map +0 -1
  45. package/dist/commands/hello.js.map +0 -1
  46. package/dist/commands/help.js.map +0 -1
  47. package/dist/commands/howto.js.map +0 -1
  48. package/dist/commands/import.js.map +0 -1
  49. package/dist/commands/interactive.js.map +0 -1
  50. package/dist/commands/login.js.map +0 -1
  51. package/dist/commands/logout.js.map +0 -1
  52. package/dist/commands/new.js.map +0 -1
  53. package/dist/commands/notes.js.map +0 -1
  54. package/dist/commands/restore.js.map +0 -1
  55. package/dist/commands/search.js.map +0 -1
  56. package/dist/commands/status.js.map +0 -1
  57. package/dist/commands/syntax.js.map +0 -1
  58. package/dist/commands/tags.js.map +0 -1
  59. package/dist/commands/today.js.map +0 -1
  60. package/dist/commands/trash/empty.js.map +0 -1
  61. package/dist/commands/trash/index.js.map +0 -1
  62. package/dist/commands/view.js.map +0 -1
  63. package/dist/commands/whoami.js.map +0 -1
  64. package/dist/index.js.map +0 -1
  65. package/dist/lib/client.js.map +0 -1
  66. package/dist/lib/config.js.map +0 -1
  67. package/dist/lib/file-cleanup.js.map +0 -1
  68. package/dist/lib/md-to-tiptap.js +0 -250
  69. package/dist/lib/md-to-tiptap.js.map +0 -1
package/README.md CHANGED
@@ -1,130 +1,130 @@
1
- # ▲ Vertex CLI
2
-
3
- **Your knowledge, structured — from the terminal.**
4
-
5
- Vertex is a keyboard-first knowledge workspace. This CLI gives you full access to your notes, todos, tags, and search from the command line.
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install -g vertex-notes
11
- ```
12
-
13
- ## Quick Start
14
-
15
- ```bash
16
- vertex login # Log in with GitHub, Google, or Email
17
- vertex notes # List all your notes
18
- vertex today # Open daily note in interactive mode
19
- vertex capture "idea" # Quick capture to Inbox
20
- ```
21
-
22
- ## Commands
23
-
24
- ### Auth
25
- | Command | Description |
26
- |---------|-------------|
27
- | `vertex login` | Log in (GitHub, Google, or Email) |
28
- | `vertex logout` | Log out and clear session |
29
- | `vertex whoami` | Show logged-in user |
30
-
31
- ### Notes
32
- | Command | Description |
33
- |---------|-------------|
34
- | `vertex notes` | List all notes |
35
- | `vertex new [title]` | Create a new note |
36
- | `vertex view <title>` | View note as markdown |
37
- | `vertex edit <title>` | Edit in $EDITOR (vim/nano/code) |
38
- | `vertex daily` | View or create today's daily note |
39
- | `vertex daily --last` | View the most recent daily note |
40
-
41
- ### Interactive Mode
42
-
43
- Open any note in a terminal UI with todo toggling:
44
-
45
- ```bash
46
- vertex today # Latest daily note
47
- vertex interactive <title> # Any note
48
- ```
49
-
50
- **Controls:**
51
-
52
- | Key | Action |
53
- |-----|--------|
54
- | `↑ ↓` | Move between items |
55
- | `Enter` | Toggle todo done/undone |
56
- | `t` | Add new todo |
57
- | `n` | Add new text line |
58
- | `d` | Delete item at cursor |
59
- | `s` | Save changes |
60
- | `q` | Save and quit |
61
-
62
- ### Capture & Search
63
-
64
- ```bash
65
- vertex capture "buy groceries" # Quick capture to Inbox
66
- vertex search "keyword" # Full-text search
67
- vertex search "#tag" # Search by tag
68
- vertex search "type:todo status:open" # Open todos
69
- vertex tags # List all tags
70
- ```
71
-
72
- ### Export
73
-
74
- ```bash
75
- vertex export "Meeting Notes" # Print as markdown
76
- vertex export "Meeting Notes" --json # Print as JSON
77
- vertex export "Meeting Notes" -o out.md # Save to file
78
- ```
79
-
80
- ### Trash
81
-
82
- ```bash
83
- vertex delete <title> # Move to trash
84
- vertex restore <title> # Restore from trash
85
- vertex trash # List trashed notes
86
- vertex trash:empty # Permanently delete all
87
- ```
88
-
89
- ### Info
90
-
91
- ```bash
92
- vertex status # Storage usage, note count
93
- vertex help # Full help with all commands
94
- ```
95
-
96
- ## Editor Syntax
97
-
98
- When using `vertex edit`, you write in markdown:
99
-
100
- ```markdown
101
- # Heading
102
- **bold** *italic* `code` ~~strike~~
103
- - Bullet list
104
- 1. Numbered list
105
- - [x] Done task
106
- - [ ] Open task
107
- > Blockquote
108
- [[Wiki Link]] #tagname
109
- ```
110
-
111
- Code blocks, math blocks (`$$ ... $$`), and standard markdown all work. Rich blocks (mermaid, callouts, file uploads) require the [web app](https://vertex-alu.pages.dev).
112
-
113
- ## Architecture
114
-
115
- The CLI shares the same backend as the Vertex web app:
116
-
117
- - **Database**: Supabase (PostgreSQL with RLS)
118
- - **Auth**: Supabase Auth (GitHub, Google, Email)
119
- - **Storage**: Cloudflare R2
120
-
121
- Notes created in the CLI appear in the web app and vice versa.
122
-
123
- ## Requirements
124
-
125
- - Node.js 18+
126
- - A Vertex account (sign up via `vertex login`)
127
-
128
- ## License
129
-
130
- MIT
1
+ # ▲ Vertex CLI
2
+
3
+ **Your knowledge, structured — from the terminal.**
4
+
5
+ Vertex is a keyboard-first knowledge workspace. This CLI gives you full access to your notes, todos, tags, and search from the command line.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g vertex-notes
11
+ ```
12
+
13
+ ## Quick Start
14
+
15
+ ```bash
16
+ vertex login # Log in with GitHub, Google, or Email
17
+ vertex notes # List all your notes
18
+ vertex today # Open daily note in interactive mode
19
+ vertex capture "idea" # Quick capture to Inbox
20
+ ```
21
+
22
+ ## Commands
23
+
24
+ ### Auth
25
+ | Command | Description |
26
+ |---------|-------------|
27
+ | `vertex login` | Log in (GitHub, Google, or Email) |
28
+ | `vertex logout` | Log out and clear session |
29
+ | `vertex whoami` | Show logged-in user |
30
+
31
+ ### Notes
32
+ | Command | Description |
33
+ |---------|-------------|
34
+ | `vertex notes` | List all notes |
35
+ | `vertex new [title]` | Create a new note |
36
+ | `vertex view <title>` | View note as markdown |
37
+ | `vertex edit <title>` | Edit in $EDITOR (vim/nano/code) |
38
+ | `vertex daily` | View or create today's daily note |
39
+ | `vertex daily --last` | View the most recent daily note |
40
+
41
+ ### Interactive Mode
42
+
43
+ Open any note in a terminal UI with todo toggling:
44
+
45
+ ```bash
46
+ vertex today # Latest daily note
47
+ vertex interactive <title> # Any note
48
+ ```
49
+
50
+ **Controls:**
51
+
52
+ | Key | Action |
53
+ |-----|--------|
54
+ | `↑ ↓` | Move between items |
55
+ | `Enter` | Toggle todo done/undone |
56
+ | `t` | Add new todo |
57
+ | `n` | Add new text line |
58
+ | `d` | Delete item at cursor |
59
+ | `s` | Save changes |
60
+ | `q` | Save and quit |
61
+
62
+ ### Capture & Search
63
+
64
+ ```bash
65
+ vertex capture "buy groceries" # Quick capture to Inbox
66
+ vertex search "keyword" # Full-text search
67
+ vertex search "#tag" # Search by tag
68
+ vertex search "type:todo status:open" # Open todos
69
+ vertex tags # List all tags
70
+ ```
71
+
72
+ ### Export
73
+
74
+ ```bash
75
+ vertex export "Meeting Notes" # Print as markdown
76
+ vertex export "Meeting Notes" --json # Print as JSON
77
+ vertex export "Meeting Notes" -o out.md # Save to file
78
+ ```
79
+
80
+ ### Trash
81
+
82
+ ```bash
83
+ vertex delete <title> # Move to trash
84
+ vertex restore <title> # Restore from trash
85
+ vertex trash # List trashed notes
86
+ vertex trash:empty # Permanently delete all
87
+ ```
88
+
89
+ ### Info
90
+
91
+ ```bash
92
+ vertex status # Storage usage, note count
93
+ vertex help # Full help with all commands
94
+ ```
95
+
96
+ ## Editor Syntax
97
+
98
+ When using `vertex edit`, you write in markdown:
99
+
100
+ ```markdown
101
+ # Heading
102
+ **bold** *italic* `code` ~~strike~~
103
+ - Bullet list
104
+ 1. Numbered list
105
+ - [x] Done task
106
+ - [ ] Open task
107
+ > Blockquote
108
+ [[Wiki Link]] #tagname
109
+ ```
110
+
111
+ Code blocks, math blocks (`$$ ... $$`), and standard markdown all work. Rich blocks (mermaid, callouts, file uploads) require the [web app](https://vertex-alu.pages.dev).
112
+
113
+ ## Architecture
114
+
115
+ The CLI shares the same backend as the Vertex web app:
116
+
117
+ - **Database**: Supabase (PostgreSQL with RLS)
118
+ - **Auth**: Supabase Auth (GitHub, Google, Email)
119
+ - **Storage**: Cloudflare R2
120
+
121
+ Notes created in the CLI appear in the web app and vice versa.
122
+
123
+ ## Requirements
124
+
125
+ - Node.js 18+
126
+ - A Vertex account (sign up via `vertex login`)
127
+
128
+ ## License
129
+
130
+ MIT
package/bin/run.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
-
3
- import { execute } from "@oclif/core";
4
- await execute({ dir: import.meta.url });
2
+
3
+ import { execute } from "@oclif/core";
4
+ await execute({ dir: import.meta.url });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-PBF5EE4Y.js";
3
+ } from "./chunk-DRIWYEQE.js";
4
4
 
5
5
  // src/lib/file-cleanup.ts
6
6
  var R2_WORKER_URL = "https://vertex-r2.codessahil.workers.dev";
@@ -25,4 +25,3 @@ async function cleanupRemovedFiles(removedFiles) {
25
25
  export {
26
26
  cleanupRemovedFiles
27
27
  };
28
- //# sourceMappingURL=chunk-JGE6NM2D.js.map
@@ -39,4 +39,3 @@ export {
39
39
  clearConfig,
40
40
  isLoggedIn
41
41
  };
42
- //# sourceMappingURL=chunk-PBF5EE4Y.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  loadConfig,
3
3
  saveConfig
4
- } from "./chunk-PBF5EE4Y.js";
4
+ } from "./chunk-DRIWYEQE.js";
5
5
  import {
6
6
  createSupabaseClient
7
- } from "./chunk-QEOOUDO3.js";
7
+ } from "./chunk-XJVEK2OB.js";
8
8
 
9
9
  // src/lib/client.ts
10
10
  var cachedClient = null;
@@ -47,4 +47,3 @@ export {
47
47
  getClient,
48
48
  getUserId
49
49
  };
50
- //# sourceMappingURL=chunk-HJR4UBO3.js.map